package com.wsx.sky.dubbo.service;

import com.wsx.sky.dubbo.bean.DubboRequest;
import com.wsx.sky.dubbo.bean.DubboResponse;

/**
 * @author wangshuaixin
 * @Title: com.wsx.sky.dubbo.service.DubboClientService
 * @Description: TODO
 * @date 2018/12/11
 */
public interface DubboClientService {

    /**
     * 单纯dubbo的调用
     * @param dubboRequest
     * @return
     */
    DubboResponse dubbo(DubboRequest dubboRequest);

    /**
     * 单纯http的调用
     * @param dubboRequest
     * @return
     */
    DubboResponse http(DubboRequest dubboRequest);

    /**
     * 组合dubbo和http的调用
     * @param dubboRequest
     * @return
     */
    DubboResponse complex(DubboRequest dubboRequest);
}
